<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../jquery-3.3.1.min.js"></script>
</head>
<body>
    <img src="./img/ray.jpg">
    <img src="./img/ray.jpg">
    <img src="./img/ray.jpg">
</body>
</html>
<script>
    $(document.body).ready(function(){
        $('img').css({'width':'300px','margin-left':'5px'});
        $('img').mouseover(function(){
            $(this).css({'border':'2px solid red'});
        })
        $('img').mouseleave(function(){
            $(this).css({'border':'none'});
        })
    })
</script>